package com.lhx.crud.service;

import com.lhx.crud.bean.Department;
import com.lhx.crud.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentService {

    //调用接口

    @Autowired
    DepartmentMapper departmentMapper;
    //查询部门信息
    public List<Department> getAll(){
        //查询数据

        return  departmentMapper.selectByExample(null);
    }








}
